package com.catmiw.wyz;

public class WordInfo {
	private String word;
	public String getWord() {
		return word;
	}
	public void setWord(String word) {
		this.word = word;
	}
	public int getNo() {
		return no;
	}
	public void setNo(int no) {
		this.no = no;
	}
	public int getUnit() {
		return unit;
	}
	public void setUnit(int unit) {
		this.unit = unit;
	}
	public int getPasstimes() {
		return passtimes;
	}
	public void setPasstimes(int passtimes) {
		this.passtimes = passtimes;
	}
	private int no;
	private int unit;
	private int passtimes;
	private int testtimes;
	public int getTesttimes() {
		return testtimes;
	}
	public void setTesttimes(int testtimes) {
		this.testtimes = testtimes;
	}
	private int lastpassdate;
	public int getLastpassdate() {
		return lastpassdate;
	}
	public void setLastpassdate(int lastpassdate) {
		this.lastpassdate = lastpassdate;
	}
	public int getLasttestdate() {
		return lasttestdate;
	}
	public void setLasttestdate(int lasttestdate) {
		this.lasttestdate = lasttestdate;
	}
	private int lasttestdate;
	
	private int randnum;
	
	public int getRandnum() {
		return randnum;
	}
	public void setRandnum(int randnum) {
		this.randnum = randnum;
	}
	public String toString(){
		return ""+no+"\t"+unit+"\t"+word+"\t"+lasttestdate+"\t"+lastpassdate+"\t"+passtimes;
	}
	public boolean equals(Object o){
		if (o==null||!(o instanceof WordInfo))
			return false;
		return word.equals(((WordInfo)o).word);
	}
}
